Release 10.1A: OpenEdge Development:
Progress 4GL Reference
GET-BITS function
Interprets one or more consecutive bits in an integer as a Progress INTEGER value and returns that value.
Syntax
sourceA Progress integer variable.
positionA variable or expression that returns an integer. This parameter designates the position of the lowest-order bit of the bits that are to be interpreted as an integer. Bits are numbered from 1 through the length of an integer; with 1 being the low-order bit. If
positionis greater than the length of an INTEGER, Progress returns the Unknown value (?). Ifpositionis less than 1, Progress generates a runtime error.numbitsThe number of bits to examine when generating the return value. If
positionplusnumbitsis greater than the length of an integer plus 1, Progress generates a runtime error.See also
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |